package com.example.allplan.JavaBean;

public class YiGeQianJavaBean implements Comparable<YiGeQianJavaBean>{
    public YiGeQianJavaBean(int id, int pai_xu_you_biao, int xian_shi, String chou_qian_ming) {
        this.id = id;
        this.pai_xu_you_biao = pai_xu_you_biao;
        this.xian_shi = xian_shi;
        this.chou_qian_ming = chou_qian_ming;
    }

    /**
     * id : 1
     * pai_xu_you_biao : 1
     * xian_shi : 1
     * chou_qian_ming : d
     */

    private int id;
    private int pai_xu_you_biao;
    private int xian_shi;
    private String chou_qian_ming;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPai_xu_you_biao() {
        return pai_xu_you_biao;
    }

    public void setPai_xu_you_biao(int pai_xu_you_biao) {
        this.pai_xu_you_biao = pai_xu_you_biao;
    }

    public int getXian_shi() {
        return xian_shi;
    }

    public void setXian_shi(int xian_shi) {
        this.xian_shi = xian_shi;
    }

    public String getChou_qian_ming() {
        return chou_qian_ming;
    }

    public void setChou_qian_ming(String chou_qian_ming) {
        this.chou_qian_ming = chou_qian_ming;
    }

    @Override
    public int compareTo(YiGeQianJavaBean o) {
        if(o.getPai_xu_you_biao()<=this.getPai_xu_you_biao())return 1;
        else return -1;
    }
}
